home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Nave
/
avenger.swf
/
scripts
/
DefineSprite_275
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-07-26
|
1KB
|
52 lines
this.onPress = function()
{
pressing = true;
i = 1;
while(i <= 3)
{
buttonColor = new Color(eval("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0",rb:"200",ga:"0",gb:"200",ba:"0",bb:"200",aa:"100",ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function()
{
pressing = false;
};
this.onReleaseOutside = function()
{
pressing = false;
};
this.onEnterFrame = function()
{
if(pressing != true)
{
i = 1;
while(i <= 3)
{
buttonColor = new Color(eval("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0",rb:hc1,ga:"0",gb:hc2,ba:"0",bb:hc3,aa:"100",ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with(piece2)
{
_width = _parent.wide;
piece1._x = _x - _width / 2;
piece3._x = _x + _width / 2;
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - _width / 2;
_parent.rightshadow._x = _x + _width / 2;
}
label1.autoSize = "center";
label2.autoSize = "center";